package ScoreBoard.ScoreBoardMainFrame.ScoreBoardMainFrameView;

import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import javax.swing.JButton;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.UIManager;

public class ScoreBoardMainFrameView 
{
	private JFrame frame;

	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String args[]) 
	{
		try
		{
		    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		
		EventQueue.invokeLater(new Runnable() 
		{
			public void run() {
				try {
					ScoreBoardMainFrameView window = new ScoreBoardMainFrameView();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application
	 */
	public ScoreBoardMainFrameView() 
	{
		try
		{
		    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		
		createContents();
		
		frame.setVisible(true);
	}

	/**
	 * Initialize the contents of the frame
	 */
	private void createContents() {
		frame = new JFrame();
		frame.getContentPane().setLayout(null);
		frame.setTitle("ScoreBoard Main Frame");
		frame.setBounds(100, 100, 721, 538);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		final JButton exitButton = new JButton();
		exitButton.setText("Exit");
		exitButton.setBounds(573, 10, 99, 23);
		frame.getContentPane().add(exitButton);

		final JLabel statusLabel = new JLabel();
		statusLabel.setText("Status");
		statusLabel.setBounds(10, 18, 60, 15);
		frame.getContentPane().add(statusLabel);

		final JLabel stoppedLabel = new JLabel();
		stoppedLabel.setText("Stopped");
		stoppedLabel.setBounds(57, 18, 60, 15);
		frame.getContentPane().add(stoppedLabel);

		final JTabbedPane tabbedPane = new JTabbedPane();
		tabbedPane.setBounds(0, 39, 713, 467);
		frame.getContentPane().add(tabbedPane);

		final JPanel panel = new JPanel();
		panel.setLayout(null);
		tabbedPane.addTab("Standings", null, panel, null);

		final JButton updateButton = new JButton();
		updateButton.setText("Update");
		updateButton.setBounds(308, 390, 99, 23);
		panel.add(updateButton);

		final JPanel panel_1 = new JPanel();
		panel_1.setLayout(null);
		tabbedPane.addTab("Settings", null, panel_1, null);

		final JButton changepasswordButton = new JButton();
		changepasswordButton.setText("ChangePassword");
		changepasswordButton.setBounds(279, 10, 137, 23);
		panel_1.add(changepasswordButton);

		final JLabel scoreboardmainframeLabel = new JLabel();
		scoreboardmainframeLabel.setForeground(new Color(255, 0, 0));
		scoreboardmainframeLabel.setFont(new Font("", Font.BOLD, 15));
		scoreboardmainframeLabel.setText("ScoreBoardMainFrame");
		scoreboardmainframeLabel.setBounds(229, 14, 167, 15);
		frame.getContentPane().add(scoreboardmainframeLabel);
	}

}
